<template>
  <div class="b-version flex flex-col">
    <div class="b-version-v">
      <span>{{$t('paywall.version')}}</span>
      <span>{{$t('paywall.v')}}{{version}}</span>
    </div>
    <ZTooltip :line="3"
              :content="desc">
      <span class="b-version-desc">{{desc}}</span>
    </ZTooltip>
  </div>
</template>

<script>
import ZTooltip from '@/components/storybook/z-tooltip'

export default {
  name: 'BVersion',
  components: {
    ZTooltip
  },
  props: {
    version: String,
    desc: String
  }
}
</script>

<style lang="scss" scoped>
.b-version {
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
  &-v {
    font-size: 14px;
    color: #404040;
    padding-bottom: 12px;
    span:nth-of-type(2) {
      padding-left: 12px;
    }
  }
  &-desc {
    // font-size: 14px;
    line-height: 19px;
    color: #808080;
  }
}
</style>
